package com.centaline.androidsalesblog.api.usercenter;

import com.centaline.androidsalesblog.api.UserCenterApi;
import com.centaline.androidsalesblog.constants.AppConstant;
import com.centaline.androidsalesblog.constants.AppNameType;
import com.centaline.androidsalesblog.constants.SourceType;
import com.centaline.androidsalesblog.model.responseobject.UserBookListRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 我的活动api
 * <p/>
 * Created by Lihq on 2016/1/27.
 */
public class UserBookingListApi extends UserCenterApi<UserBookListRo> {

    private int firstIndex;
    private int count = 10;

    public UserBookingListApi(Class<?> tag, Class<UserBookListRo> aClass, IResponseListener<UserBookListRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setFirstIndex(int firstIndex) {
        this.firstIndex = firstIndex;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public void setParams() {
        putParams("FirstIndex", firstIndex);
        putParams("Count", count);
        putParams("UserId", AppConstant.UserId);
        putParams("CityCode", AppConstant.CityCode);
        putParams("IsDel", false);
        putParams("AppName", AppNameType.NEWPROP);
        putParams("Source", SourceType.HUODONG);
    }


    @Override
    public String getPath() {
        return "UserBookingListRequest";
    }
}


